package com.sunny.project;

/**
 * 模拟客户端的实现
 * Created by joe on 16-8-1.
 */
public class SunnyTest {

	public static void main(String[] args){

//		HairInterface left = new LeftHair();
//		left.draw();
//
//		HairInterface right = new RightHair();
//		right.draw();

		HairFactory factory = new HairFactory();
//		HairInterface left = factory.getHair("left");
//		left.draw();
//		HairInterface left = factory.getHaiByClass("com.sunny.project.LeftHair");
//		left.draw();
		HairInterface hair = factory.getHaiByClassKey("in");
		hair.draw();

	}
}
